Transforming standard form to general form